package com.bupt.service.system;

import com.bupt.dto.sys.UserDto;
import com.bupt.exception.BaseException;

import javax.servlet.http.HttpServletRequest;

/**
 * 用户登出登出操作
 * crate on 2021/4/2
 */
public interface SysLoginService {

    /**
     * 用户登录操作
     *
     * @param username
     * @param password
     * @return
     * @throws Exception
     */

    Object Login(String username,String password) throws BaseException;

    /**
     * 获取当前的登录的用户
     *
     * @return
     * @throws BaseException
     */
    Object getCurrentLoginUser(UserDto userDto,HttpServletRequest request) throws BaseException;

    /**
     * 用户的登出操作
     *
     * @param userDto
     * @return
     * @throws BaseException
     */
    Object quitCurrentUser(UserDto userDto,HttpServletRequest request) throws BaseException;

    Object getAllUsers() throws BaseException;

}

